const getters = {
    name: state => state.user.userInfo.name,
    points: (state) => {
        if (state.user.userInfo.roles) {
            return state.user.userInfo.roles.points
        } else {
            return []
        }
    }

}
export default getters